package org.glorylight.hacks.social.controller;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;

import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.User;

public abstract class AbstractBaseController {
	
	@Context
	UriInfo uriInfo;
	
	protected String getActiveLogin() {
		return ((User)SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername();
	}
}
